package com.tarena.day04_all;

public class Demo04 {
	public static void main(String[] args) {
		int i = 0;
		System.out.println((i++) % 3);// (i++)=0 i=1 0%3
		System.out.println(i++ % 3);// (i++)=1 i=2 1%3
		System.out.println(i++ % 3);// (i++)=2 i=3 2%3
		System.out.println(i++ % 3);// (i++)=3 i=4 3%3
		System.out.println(i++ % 3);// 1
		System.out.println(i++ % 3);// 2
		System.out.println(i++ % 3);// 0
		String[] players = { "孙俪", "邓超", "佟大为" };
		//                     0       1       2
		String one = players[0];
		System.out.println(one);//孙俪
		i = 0;
		System.out.println(players[i++%3]); 
		System.out.println(players[i++%3]); 
		System.out.println(players[i++%3]); 
		System.out.println(players[i++%3]); 
		System.out.println(players[i++%3]); 
	}
}




